<!DOCtype html>
<html ng-app="advertiserApp">
	 <head>
	     <meta charset= "utf-8"/>
		 <title>已上传广告</title>
		 <script type="text/javascript" src="/web-adv/advWeb/static/vendor/angular/angular.min.js"></script>
		 <script type="text/javascript" src="/web-adv/advWeb/static/vendor/jquery/dist/jquery.min.js"></script>
		 <script type="text/javascript" src="/web-adv/advWeb/static/vendor/bootstrap/dist/js/bootstrap.min.js"></script>
		 <script type="text/javascript" src="/web-adv/advWeb/static/js/mainApp.js"></script>
		 <script type="text/javascript" src="/web-adv/advWeb/controller/advertiserCtrl.js"></script>
		 <script type="text/javascript" src="/web-adv/advWeb/static/js/main.js"></script>
		 <link rel="stylesheet" href="/web-adv/advWeb/static/vendor/bootstrap/dist/css/bootstrap.min.css" />
		 <link rel="stylesheet" href="/web-adv/advWeb/static/vendor/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" />
		 <link rel="stylesheet" href="/web-adv/advWeb/static/styles/table.css" />
		 <link rel="stylesheet" href="/web-adv/advWeb/static/styles/layout.css" />
		 <link rel="stylesheet" href="/web-adv/advWeb/static/styles/main.css" />
		 <link rel="shortcut icon" href="/web-adv/advWeb/static/favicon.ico" />
		 <link rel="bookmark" href="/web-adv/advWeb/static/favicon.ico" />
	 </head>
	 <body ng-controller="advertiserCtrl">	
         <div class="headerBox"></div>
         <div class="nav"><ul></ul></div>
		 <div class="content">
         <!-- begin -->		 
		     <div class="websiteMapBox">
			     <span>当前页面></span>
				 <span>已上传广告</span>
			 </div>
		     <table class="table table-striped table-bordered table-hover" id="finishedAdtable">
			     <tr>
			     	<th>序号</th>
			     	<th>广告名称</th>
			     	<th>上传时间</th>
			     	<th>广告形式</th>
			     	<th>投放终端</th>
			     	<th>审核状态</th>
			     	<th>上线状态</th>
			     	<th>操作</th>
			     </tr>
				 <tr ng-repeat="item in tableData" >
				 	<td ng-bind="$index+1"></td>
				 	<td ng-bind="item.adName"></td>
				 	<td ng-bind="translate(item.createTime)|date:'yyyy.MM.dd'"></td>
				 	<td ng-bind="item.adType|filterAdType"></td>
				 	<td ng-bind="item.terminalType|filterTerminalType"></td>
				 	<td ng-bind="item.checkStatus|filterAdStatus"></td>
				 	<td ng-bind="item.status|filterStatus"></td>
				 	<td>
					     <button ng-click="deleteAd(item.adId)" ng-if="checkStatus(item.checkStatus)" class="btn btn-primary">删除</button>
					     <a ng-href="/web-adv/advWeb/views/uploadAd/uploaded/modifyImg.html?selectedNav=1&navPos=0&adId={{item.adId}}&terminalType={{item.terminalType}}" ng-if="!details(item.adType)" class="btn btn-primary">编辑</a>
					     <a ng-href="/web-adv/advWeb/views/uploadAd/uploaded/modifyVideo.html?selectedNav=1&navPos=0&adId={{item.adId}}&terminalType={{item.terminalType}}" ng-if="details(item.adType)" class="btn btn-primary">编辑</a>
					     <a ng-href="/web-adv/advWeb/views/uploadAd/videoAd/adDetail.html?selectedNav=1&navPos=0&adId={{item.adId}}" ng-if="details(item.adType)" class="btn btn-primary">查看</a>
					     <a ng-href="/web-adv/advWeb/views/uploadAd/imageAd/adDetail.html?selectedNav=1&navPos=0&adId={{item.adId}}" ng-if="!details(item.adType)" class="btn btn-primary">查看</a>
				    </td>
				 </tr> 
	
			 </table>
		     
		 <!-- end -->
		 </div>	               	 
	 </body>
	 
	  <script type="text/javascript" src="/web-adv/advWeb/controller/uploadAd/uploaded/index.js"></script>
</html>